package be.hikage.sfeir.extension;

import javax.enterprise.event.Observes;
import javax.enterprise.inject.spi.*;
import java.text.Annotation;
import java.util.logging.Logger;

/**
 * @author Gildas Cuisinier (hikage@hikage.be)
 *         User: hikage
 *         Date: 20/03/11
 */
public class SidExtension implements Extension
{
void beforeBeanDiscovery(@Observes BeforeBeanDiscovery bbd) {

    System.out.println("Bean discovery starting" + bbd.);
   }



   <T> void processAnnotatedType(@Observes ProcessAnnotatedType<T> pat) {

      Logger.global.debug("scanning type: " + pat.getAnnotatedType().getJavaClass().getName());

   }


   void afterBeanDiscovery(@Observes AfterBeanDiscovery abd) {

      Logger.global.debug("finished the scanning process");

   }
}
